package za.ac.cput.garethc.designpatterns.behavioural.chainofresponsibility;


/**
 *
 * @author Gareth
 */
public abstract class PlanetHandler
{

    PlanetHandler successor;

    public void setSuccessor(PlanetHandler successor)
    {
        this.successor = successor;
    }
    
    public abstract void handleRequest(PlanetEnum request);

    public PlanetHandler getSuccessor() {
        return successor;
    }
    
}
